﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "GnufExtension.h"
#include "GnufFilledRegionBoard.h"
#include <QWidget>

class QEventLoop;
namespace gnuf
{
    class GNUF_EXTENSION_EXPORT QtFilledPatternBoard : public QWidget
    {
        Q_OBJECT
    public:
        QtFilledPatternBoard(GnufFilledPatternBoard* data, QWidget* parent = nullptr);
        virtual ~QtFilledPatternBoard();

        void exec();
    protected:
        virtual void showEvent(QShowEvent* event) override;
        virtual void closeEvent(QCloseEvent* e) override;
    private:
        GnufFilledPatternBoard* m_data;
        QEventLoop* m_loop;
    };
}
